package com.woniu.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.math.BigDecimal;
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class ProductInputVO {
    private Integer productId;
    private String name;

    /**
     * 商品类别
     */
    private Integer categoryId;

    /**
     * 采购订单号
     */
    private String procureId;

    /**
     * 主单位，关联unit
     */
    private Integer unitId;
    private String unitName;

    /**
     * 分量单位，关联unit
     */
    private Integer secondUnitId;

    /**
     * 比重
     */
    private BigDecimal convert;

    /**
     * 供应商id
     */
    private Integer supplierId;

    /**
     * 图片地址
     */
    private String imgSrc;

    /**
     * 1成品 2次品
     */
    private String type;

    /**
     *
     */
    private BigDecimal price;

    /**
     * 库存
     */
    private BigDecimal num;

    /**
     * 最小库存
     */
    private BigDecimal minStock;

    /**
     * 最大库存
     */
    private BigDecimal maxStock;

    /**
     * 损耗率
     */
    private BigDecimal lossRate;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String updateTime;
}
